function [ im ] = hogToIm(hog)
% bg_model = flag denoting whether HOG feature contains bg model or no.
load_settings;
temp = [];
if length(hog) == 2*hogsize % Added a background model
    temp = vl_hog('render', reshape(hog(hogsize+1:end), hogshape));
end
im = [ vl_hog('render', reshape(hog(1:hogsize), hogshape)) temp ];
end